#!/bin/sh
#/etc/ImageMagick-6/policy.xml

if [ -f "/etc/ImageMagick-6/policy.xml" ]; then
    sed -i 's#domain="path" rights="none"#domain="path" rights="read|write"#g' /etc/ImageMagick-6/policy.xml
fi